package com.pay;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类(启动的时候一定要配置好支付宝、微信以及银联相关参数)
 */
@EnableTransactionManagement
@SpringBootApplication(scanBasePackages  = "com.pay.**")
//@EnableDubbo(scanBasePackages  = "com.pay.modules")
//@NacosPropertySource(dataId = "example", autoRefreshed = true)
@MapperScan("com.pay.payment.mapper")
@EnableCaching
public class Application {

    private final static Logger LOGGER = LoggerFactory.getLogger(Application.class);

	public static void main(String[] args){
		SpringApplication.run(Application.class, args);
        LOGGER.info("支付项目启动，官网：https://zzipay.vip");
	}
}